package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : 洪俊新
 * @date : 2021/3/13 11:50
 * @description:
 */
public class QueryPostRes {
    /**
     *主键
    * 帖子id
    * isnull 1
     */
    @ApiModelProperty(value="帖子id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String postId;
    /**
     * 作者昵称
     * isnull 0
     */        @ApiModelProperty(value="作者昵称",position=2)
    private String authorNickname;
    /**
     * 作者头像
     * isnull 0
     */        @ApiModelProperty(value="作者头像",position=4)
    private String authorImg;
    /**
     * 作者id
     * isnull 0
     */        @ApiModelProperty(value="作者id",position=2)
    private String authorId;
    /**
     * 帖子标题
     * isnull 0
     */        @ApiModelProperty(value="帖子标题",position=3)
    private String postName;
    /**
     * 帖子内容
     * isnull 0
     */        @ApiModelProperty(value="帖子内容",position=4)
    private String postContent;
    /**
     * 帖子二级标签
     * isnull 0
     */        @ApiModelProperty(value="帖子二级标签",position=7)
    private String postTwolabel;
    /**
     * 帖子一级标签
     * isnull 0
     */        @ApiModelProperty(value="帖子一级标签",position=8)
    private String postOnelabel;
    /**
     * 点赞数量
     * isnull 0
     */        @ApiModelProperty(value="点赞数量", position=9)
    private Integer likeCount;
    /**
     * 收藏数量
     * isnull 0
     */        @ApiModelProperty(value="收藏数量",position=10)
    private Integer favoriteCount;
    /**
     * 评论数量
     * isnull 0
     */        @ApiModelProperty(value="评论数量", position=11)
    private Integer commentCount;
    /**
     * 创建时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value="创建时间",position=12)
    private LocalDateTime creatTime;

    public String getPostId() {
        return postId;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public String getAuthorNickname() {
        return authorNickname;
    }

    public void setAuthorNickname(String authorNickname) {
        this.authorNickname = authorNickname;
    }

    public String getAuthorImg() {
        return authorImg;
    }

    public void setAuthorImg(String authorImg) {
        this.authorImg = authorImg;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getPostContent() {
        return postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent;
    }

    public String getPostTwolabel() {
        return postTwolabel;
    }

    public void setPostTwolabel(String postTwolabel) {
        this.postTwolabel = postTwolabel;
    }

    public String getPostOnelabel() {
        return postOnelabel;
    }

    public void setPostOnelabel(String postOnelabel) {
        this.postOnelabel = postOnelabel;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getFavoriteCount() {
        return favoriteCount;
    }

    public void setFavoriteCount(Integer favoriteCount) {
        this.favoriteCount = favoriteCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public LocalDateTime getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(LocalDateTime creatTime) {
        this.creatTime = creatTime;
    }

    @Override
    public String toString() {
        return "QueryPostRes{" +
                "postId='" + postId + '\'' +
                ", authorNickname='" + authorNickname + '\'' +
                ", authorImg='" + authorImg + '\'' +
                ", authorId='" + authorId + '\'' +
                ", postName='" + postName + '\'' +
                ", postContent='" + postContent + '\'' +
                ", postTwolabel='" + postTwolabel + '\'' +
                ", postOnelabel='" + postOnelabel + '\'' +
                ", likeCount=" + likeCount +
                ", favoriteCount=" + favoriteCount +
                ", commentCount=" + commentCount +
                ", creatTime=" + creatTime +
                '}';
    }
}
